package cn.stylefeng.guns.modular.cb.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.cb.entity.CbEducation;
import cn.stylefeng.guns.modular.cb.model.params.CbEducationParam;
import cn.stylefeng.guns.modular.cb.model.result.CbEducationResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  教育经历 服务类
 * </p>
 *
 * @author wj
 * @since 2021-01-06
 */
public interface CbEducationService extends IService<CbEducation> {

    /**
     * 新增
     *
     * @author wj
     * @Date 2021-01-06
     */
    void add(CbEducationParam param);

    /**
     * 删除
     *
     * @author wj
     * @Date 2021-01-06
     */
    void delete(CbEducationParam param);

    /**
     * 更新
     *
     * @author wj
     * @Date 2021-01-06
     */
    void update(CbEducationParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wj
     * @Date 2021-01-06
     */
    CbEducationResult findBySpec(CbEducationParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wj
     * @Date 2021-01-06
     */
    List<CbEducationResult> findListBySpec(CbEducationParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wj
     * @Date 2021-01-06
     */
     LayuiPageInfo findPageBySpec(CbEducationParam param);

    /**
     * 查询校友
     * @param param
     * @return
     */
    List<CbEducationResult> alumniList(CbEducationParam param);


    /**
     * 职位列表
     * @param schoolNo
     * @return
     */
    List<CbEducationResult> listProfession(String schoolNo);

    /**
     * 获取教育
     * @param paramCondition
     * @return
     */
    CbEducationResult getCbEducation(@Param("paramCondition") CbEducationParam paramCondition);
}
